package com.sharp.portal.service.impl;

import com.github.pagehelper.PageInfo;
import com.sharp.portal.service.PortalAspectService;
import com.sharp.portal.vo.QueryConditionReq;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Title: PortalAspectServiceImpl
 * Description: Copyright: Copyright (c) 2019 Company: BHFAE
 *
 * @author Sharp
 * @date 2021/6/17 18:28
 */
@Service
@SuppressWarnings("rawtypes")
public class PortalAspectServiceImpl<T> implements PortalAspectService<T> {

    @Override
    public void queryBefore(QueryConditionReq req) {

    }

    @Override
    public PageInfo queryAfter(PageInfo<T> data) {
        return data;
    }

    @Override
    public void addBefore(Object entity) {

    }

    @Override
    public void addAfter(Object entity) {

    }

    @Override
    public void updateBefore(Object entity) {

    }

    @Override
    public void updateAfter(Object entity) {

    }

    @Override
    public void disableBefore(Object id) {

    }

    @Override
    public void disableAfter(Object id) {

    }

    @Override
    public void deleteBefore(Object id) {

    }

    @Override
    public void deleteAfter(Object id) {

    }

    @Override
    public void exportBefore(QueryConditionReq req) {

    }

    @Override
    public List exportAfter(List<T> data) {
        return data;
    }
}
